package main

import(
	"fmt"
)

type Animal struct{
	Name string
	Sex string
}
func (a *Animal) Talk() {
	fmt.Printf("i'talk,i'am %s\n",a.Name)	
}
type Dog struct{
	Feet string
	*Animal
}
func(d *Dog)Eat(){
	fmt.Println("dog is eat")
}
func (d *Dog)Talk(){
	fmt.Println("dog is talk too")
	
}
func main()  {
	var d *Dog = &Dog{
		Feet:"four feet",
		Animal:&Animal{
			Name:"dog",
			Sex:"female",
		},
	}
	d.Talk()
	d.Eat()
}